package com.coollang.smartbra.utils;

import android.view.View;

import com.coollang.smartbra.R;

import static android.view.animation.AnimationUtils.loadAnimation;

/**
 * Created by Administrator on 2016/10/21 0021.
 */

public class AnimUtils {

    public static void closeToDown(View view) {
        view.startAnimation(loadAnimation(UIUtils.getContext(), R.anim.set_map_control_colse));
        view.setVisibility(View.GONE);
    }

    public static void openFromDown(View view) {
        view.startAnimation(loadAnimation(UIUtils.getContext(), R.anim.set_map_control_show));
        view.setVisibility(View.VISIBLE);
    }
}
